package com.hgyc.mom.wms.enums;

/**
 * 采购订单类型字典类
 * 自动生成的枚举类，请勿手动修改

 * @author fwj
 * @date 2025-05-15 14:53:08
 * @version 1.0
 **/
public enum CrmPurchaseOrderTypeEnum {
    COMMON("COMMON", "普通采购"),
    PROJECT("PROJECT", "项目采购"),
    OUTSOURCING("OUTSOURCING", "委外采购"),
    VIRTUAL("VIRTUAL", "虚拟采购")
    ;

    private final String value;
    private final String label;

    CrmPurchaseOrderTypeEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public String getValue() {
        return this.value;
    }

    public String getLabel() {
        return this.label;
    }

    public static CrmPurchaseOrderTypeEnum of(String value) {
        if (value == null) {
            return null;
        }
        for (CrmPurchaseOrderTypeEnum item : CrmPurchaseOrderTypeEnum.values()) {
            if (item.value.equals(value)) {
                return item;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.label;
    }
}

